package ${modelMetadata.packagePrefix}.${modelMetadata.subsystem}.web.struts.action;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.actions.DispatchAction;
import ${modelMetadata.packagePrefix}.${modelMetadata.subsystem}.web.struts.form.${modelMetadata.beanName}Form;

/**
 * <p>
 * Title:${modelMetadata.modelDescription}
 * </p>
 * <p>
 * Description:
 * </p>
 * <p>
 * Copyright: Copyright (c) 2012
 * </p>
 * <p>
 * Company: liss
 * </p>
 * @author <a href="mailto:shushanlee@msn.com">liss</a>
 * @version 1.0
 * @see 
 * @since   1.0
 */
public class ${modelMetadata.beanName}Action extends DispatchAction {

	/**
	 * <p>
	 * Title��Method create${modelMetadata.beanName} �򿪴���ҳ��
	 * </p>
	 * <p>
	 * Description��
	 * </p>
	 * @author <a href="mailto:shushanlee@msn.com">liss</a>
	 * @param mapping
	 * @param form
	 * @param request
	 * @param response
	 * @return ActionForward
	 */
	public ActionForward create${modelMetadata.beanName}(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) {
		${modelMetadata.beanName}Form userForm = (${modelMetadata.beanName}Form) form;
		
		
		return mapping.findForward("create${modelMetadata.beanName}");
	}
	
	/**
	 * <p>
	 * Title��Method saveNew${modelMetadata.beanName} ��������
	 * </p>
	 * <p>
	 * Description��
	 * </p>
	 * @author <a href="mailto:shushanlee@msn.com">liss</a>
	 * @param mapping
	 * @param form
	 * @param request
	 * @param response
	 * @return ActionForward
	 */
	public ActionForward saveNew${modelMetadata.beanName}(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) {
		${modelMetadata.beanName}Form userForm = (${modelMetadata.beanName}Form) form;
		
		
		return mapping.findForward("saveNew${modelMetadata.beanName}");
	}
	
}